# -*- coding:utf-8 -*-
'''
@author: xiaoming
@contact: lishihui0129@163.com
@time: 2017/6/29 11:53
@desc:
'''
import re
import os
from myUtil import qqPattern,flagSplitPattern
from mysqlHelper import connectDB,close,insertSql


def qqExtract(string):
    '''
    :param string: 待提取对象
    :return:提取结果
    '''
    res=re.findall(qqPattern,string)
    # 去除重复
    res=list(set(res))
    # 提取前缀，并进行组合
    temp=[]
    for item in res:
        temp.append(item)
    return temp